package entity;

import java.io.Serializable;

/**
 * @Description: TODO
 * @author: 李展鹏
 * @date: 2024年01月18日20:26
 */
public class Address implements Serializable {
    private Integer id;     //主键ID
    private String contact;     //联系人姓名
    private String addressDesc;     //收货地址明细
    private String postCode;        //邮编
    private String tel;         //联系电话
    private Integer createdUserId;      //创建者
    private String createdTime;     //创建时间
    private Integer updatedUserId;      //修改者
    private String updatedTime;     //修改时间
    private Integer userId;     //用户ID

    /**
     * 类的无参构造
     */
    public Address() {
    }

    /**
     * 类的带参构造
     * @param id
     * @param contact
     * @param addressDesc
     * @param postCode
     * @param tel
     * @param createdUserId
     * @param createdTime
     * @param updatedUserId
     * @param updatedTime
     * @param userId
     */
    public Address(Integer id, String contact, String addressDesc, String postCode, String tel, Integer createdUserId, String createdTime, Integer updatedUserId, String updatedTime, Integer userId) {
        this.id = id;
        this.contact = contact;
        this.addressDesc = addressDesc;
        this.postCode = postCode;
        this.tel = tel;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.userId = userId;
    }

    /**
     * 类的带参构造
     * @param contact
     * @param addressDesc
     * @param postCode
     * @param tel
     * @param createdUserId
     * @param createdTime
     * @param updatedUserId
     * @param updatedTime
     * @param userId
     */
    public Address(String contact, String addressDesc, String postCode, String tel, Integer createdUserId, String createdTime, Integer updatedUserId, String updatedTime, Integer userId) {
        this.contact = contact;
        this.addressDesc = addressDesc;
        this.postCode = postCode;
        this.tel = tel;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.userId = userId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getAddressDesc() {
        return addressDesc;
    }

    public void setAddressDesc(String addressDesc) {
        this.addressDesc = addressDesc;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(Integer createdUserId) {
        this.createdUserId = createdUserId;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getUpdatedUserId() {
        return updatedUserId;
    }

    public void setUpdatedUserId(Integer updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    public String getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(String updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", contact='" + contact + '\'' +
                ", addressDesc='" + addressDesc + '\'' +
                ", postCode='" + postCode + '\'' +
                ", tel='" + tel + '\'' +
                ", createdUserId=" + createdUserId +
                ", createdTime='" + createdTime + '\'' +
                ", updatedUserId=" + updatedUserId +
                ", updatedTime='" + updatedTime + '\'' +
                ", userId=" + userId +
                '}';
    }
}
